BubbleMetadata

Encapsulates the information needed to display a notification as a bubble.

A bubble is used to display app content in a floating window over the existing foreground activity. A bubble has a collapsed state represented by an icon, setIcon and an expanded state which is populated via setIntent.

Notifications with a valid and allowed bubble will display in collapsed state outside of the notification shade on unlocked devices. When a user interacts with the collapsed bubble, the bubble intent will be invoked and displayed.

See also

Types

Link copied to clipboard
class Builder
Builder to construct a BubbleMetadata object.

Functions

Link copied to clipboard
@Nullable
open fun fromPlatform(platformMetadata: @Nullable Notification.BubbleMetadata): @Nullable NotificationCompat.BubbleMetadata
Link copied to clipboard
Link copied to clipboard
@Nullable
open fun getDeleteIntent(): @Nullable PendingIntent
Link copied to clipboard
@Dimension(unit = 0)
open fun getDesiredHeight(): Int
Link copied to clipboard
Link copied to clipboard
@Nullable
open fun getIcon(): @Nullable IconCompat
Link copied to clipboard
@Nullable
open fun getIntent(): @Nullable PendingIntent
Link copied to clipboard
@Nullable
open fun getShortcutId(): @Nullable String
Link copied to clipboard
Link copied to clipboard
open fun setFlags(flags: Int)
Link copied to clipboard
open fun toPlatform(@Nullable compatMetadata: @Nullable NotificationCompat.BubbleMetadata): @Nullable Notification.BubbleMetadata